package com.tuyrt.`as`.proj.main.http.api

import com.tuyrt.`as`.proj.main.model.CourseNotice
import com.tuyrt.`as`.proj.main.model.UserProfile
import com.tuyrt.hi.library.restful.HiCall
import com.tuyrt.hi.library.restful.annotation.Field
import com.tuyrt.hi.library.restful.annotation.GET
import com.tuyrt.hi.library.restful.annotation.POST

/**
 * author: Administrator on 2021/6/24.
 * desc:
 */
interface AccountApi {

    @POST("user/login")
    fun login(
        @Field("userName") userName: String,
        @Field("password") password: String,
    ): HiCall<String>


    @POST("user/registration")
    fun register(
        @Field("userName") userName: String,
        @Field("password") password: String,
        @Field("imoocId") imoocId: String,
        @Field("orderId") orderId: String,
    ): HiCall<String>

    @GET("user/profile")
    fun profile(): HiCall<UserProfile>

    @GET("notice")
    fun notice(): HiCall<CourseNotice>
}